home *** CD-ROM | disk | FTP | other *** search
- Path: news2.acs.oakland.edu!mjkamal
- From: mjkamal@vela.acs.oakland.edu (M.J.Kamal)
- Newsgroups: comp.lang.c++
- Subject: Need some help
- Date: 12 Jan 1996 19:56:19 GMT
- Organization: Oakland University, Rochester, Michigan, U.S.A.
- Distribution: na
- Message-ID: <4d6ed3$sri@news2.acs.oakland.edu>
- NNTP-Posting-Host: vela.acs.oakland.edu
-
- Need help with c++. I'm trying to create a window on the screen and display
- everything within it. Here is how the structure of that part of my program looks
- like:
-
- window(x1,y1,x2,y2) /* Defines my window in text mode(not graphics) */
- clrscr(); /* Clears screen */
- cout & cin statemenets /* This is where I prompt for keyboard entry */
- cout statement /* I print something on the screen */
-
-
- Problem is, the 1st 'cout' statement prints within my defined window(which is
- smaller than the default one). But the 2nd one prints in the default window
- & outside the defined one! The only way I can get it to print in the defined
- window is by putting a 'clrscr()' statement before the 2nd 'cout' statement.
- I don't want to do that. My reference manual says that once a window is defined
- everything should be relative to that window. What is going on? I'm using
- Borland C++ 3.1
-
- Thanx in advance.
-
- mjkamal@vela.oakland.edu
-
-
-
-
-